package com.project.forlearningdemo.service;

import javax.mail.MessagingException;
import javax.servlet.http.HttpServletRequest;

public interface UserService {

    //获取用户信息
    String findUser(String user);

    //修改用户信息
    String updateUser(String user);

    //添加用户信息
    String addUser(String user);

    //删除用户
    String deleteUser(Integer userId);

    //用户注册
    String registerUser(String mpc) throws MessagingException;

    //用户登录
    String loginUser(String up, HttpServletRequest request);

    //用户修改密码
    String updateUserPass(String mpc);

    //发送验证码
    String sendCode(String mail) throws MessagingException;

    //注销
    String logout();
}
